# -*- coding: utf-8 -*-
"""
Created on Wed Aug 15 10:46:29 2018

@author: jiujiujiu
"""

from bs4 import BeautifulSoup


def get_dates(url):
    text = get_html_text(url)
    if not text:
        return None
    soup = BeautifulSoup(text, 'lxml')
    data = soup.select('.date')
    dates = [date.get_text()[:10] for date in data]
    return dates
